package com.hyt.it.ogt.data.service.pj.impl;

import com.hyt.core.base.BaseServiceImpl;
import com.hyt.it.ogt.data.mapper.pj.PjDataExamExpertMapper;
import com.hyt.it.ogt.data.model.entity.pj.ExamExpert;
import com.hyt.it.ogt.data.model.vo.pj.ModeExamExpertVo;
import com.hyt.it.ogt.data.service.pj.IPjDataExamExpertService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 评卷专家 服务实现类
 * </p>
 *
 * @author liy
 * @since 2022-02-28
 */
@Service
public class PjDataExamExpertServiceImpl extends BaseServiceImpl<PjDataExamExpertMapper, ExamExpert> implements IPjDataExamExpertService {

	protected Logger logger = LoggerFactory.getLogger(this.getClass());

	@Autowired
	private PjDataExamExpertMapper pjDataExamExpertMapper;

	@Override
	public List<ModeExamExpertVo> queryExamExpertVos(String projectId) {
		return pjDataExamExpertMapper.queryExamExpertVos(projectId);
	}

	@Override
	public List<ModeExamExpertVo> queryEaxmModeExamExpertVos(String projectId, String subjectId, String batchId, String roomId) {
		return pjDataExamExpertMapper.queryTaskExamExpertVos(projectId, subjectId, batchId, roomId);

	}

	@Override
	public String queryExpertBySubject(String projectId, String subjectId, String roomId, String markModel) {
		return pjDataExamExpertMapper.queryExpertBySubject(projectId, subjectId, roomId, markModel);
	}

	@Override
	public List<ModeExamExpertVo> queryTaskExamExpertVos(String projectId) {
		return pjDataExamExpertMapper.queryTaskExamExpertVos(projectId);
	}
}
